]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Fix a runtime warning
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 28 Apr 2017 14:54:28 +0000 (16:54 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 11 May 2017 13:20:10 +0000 (15:20 +0200)
GJS now warns about excess parameters, so wrap the queue_relayout()
into an anonymous function instead of using it directly as signal
handler.

js/ui/dateMenu.js

index 18b5b0b4fa7f44af114ffec6d82b2c6c46ccc300..1ce377936cf99873878710b74f10cddd0c36ea81 100644 (file)
@@ -370,8 +370,7 @@ const IndicatorPad = new Lang.Class({
 
     _init: function(actor) {
         this._source = actor;
-        this._source.connect('notify::visible',
-                             Lang.bind(this, this.queue_relayout));
+        this._source.connect('notify::visible', () => { this.queue_relayout(); });
         this.parent();
     },